import {useEffectOnce} from 'react-use';
import React from 'react';

const Demo = () => {
  useEffectOnce(() => {
    console.log('Running effect once on mount')

    return () => {
      console.log('Running clean-up of effect on unmount')
    }
  });

  return (
      <div>hello</div>
  );
};

export default Demo;